Skip to main content

📤 Set Response

The Set Response action allows you to define the data that the Pageflows returns to the client or calling service.


Configuration​

  • Key: Specify the response field name or key.
  • Value: Assign a static value or use dynamic expressions to set the response content.
  • Add multiple key-value pairs to structure the response object as needed.
  • Supports combining static and dynamic data for flexible response generation.

Features​

  • Enables custom response formatting based on Pageflows processing.
  • Supports dynamic data injection using expressions or variables.
  • Allows multiple response fields to be defined in one action.
  • Useful for API responses, webhook callbacks, or UI feedback.

Use Cases​

  • Return processed data, status messages, or computed results.
  • Format API responses dynamically based on Pageflows outcomes.
  • Provide detailed feedback or error information to clients.
  • Aggregate data from multiple sources into a structured response.

Notes​

  • Ensure keys are unique to avoid overwriting response fields.
  • Validate dynamic expressions to prevent runtime errors.
  • Combine with status code actions for comprehensive response control.

Tip: Use Set Response in conjunction with Set Status to manage complete API response behavior effectively.